using System.Web;
using System.Web.Routing;
using Blog.Infrastructure.DataAcces.MetaBlog;
using Blog.Infrastructure.DataAcces.Repositories.Abstractisations;
using Blog.Presentation.StructureMap;

namespace Blog.Presentation.Handlers
{
    public class MetaWeblogRouteHandler : IRouteHandler
    {
        public IHttpHandler GetHttpHandler(RequestContext requestContext)
        {
            return new MetaWebLogApi(IoC.Resolve<IArticleRepository>(),IoC.Resolve<IUserRepository>());
        }
    }

}